.page {
  display: flex;
  flex-direction: column;
  background: #f7f8fa;
  height: 100vh;

  .pageBody {
    flex-grow: 1;
    min-height: 0;
  }
}

.repair-price-info {
  display: flex;
  flex-direction: column;
  gap: 24rpx;
  padding: 24rpx;

  .repair-detail-navbar {
    --nav-bar-icon-color: #555;
  }

  .info-card {
    background: #fff;
    border-radius: 16rpx;
    padding: 24rpx;
    box-shadow: 4rpx 8rpx 39rpx rgba(0, 0, 0, 0.1);

    .info-item {
      display: flex;
      margin-bottom: 24rpx;

      &:last-child {
        margin-bottom: 0;
      }

      .label {
        width: 140rpx;
        color: #999;
        font-size: 28rpx;
      }

      .value {
        flex: 1;
        color: #333;
        font-size: 28rpx;
      }
    }
  }

  .price-card {
    background: #fff;
    border-radius: 16rpx;
    padding: 24rpx;
    box-shadow: 4rpx 8rpx 39rpx rgba(0, 0, 0, 0.1);

    .card-header {
      display: flex;
      align-items: center;
      margin-bottom: 24rpx;

      .title {
        font-size: 32rpx;
        font-weight: 500;
        color: #333;
      }

      .status {
        color: #ff4d4f;
        font-size: 28rpx;
        margin-left: 10px;

        &.green {
          color: #52c41a;
        }
      }
    }

    .price-items {
      .price-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24rpx 0;
        border-bottom: 2rpx solid #f5f5f5;
        font-size: 26rpx;
        color: #999;

        &:last-child {
          border-bottom: none;
        }

        .item-info {
          display: flex;
          align-items: center;

          .name {
            width: 100px;
          }
        }

        .quantity {}
      }
    }

    .total-price {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 24rpx;
      border-top: 2rpx solid #f5f5f5;
      font-size: 28rpx;
    }
  }

  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 24rpx;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);

    .price-summary {
      .summary-item {
        display: flex;
        align-items: center;
        font-size: 14px;

        .label {
          width: 100px;
          color: #adb5bd;
        }

        .value {
          color: #ff4d4f;
          font-weight: 500;
          margin-left: 4px;

          &.line-through {
            text-decoration: line-through;
          }
        }
      }
    }

    .pay-btn {
      width: 240rpx;
      height: 80rpx;
      line-height: 80rpx;
      display: flex;
      margin: 0;
      padding: 0;
      justify-content: center;
      align-items: center;
      background: #1989fa;
      color: #fff;
      font-size: 28rpx;
      border-radius: 40rpx;
      text-align: center;

      &.disaled {
        background: #adb5bd;
      }
    }
  }

  .confirm-dialog {
    border: 4px solid #1989fa;

    .van-button {
      color: #333 !important;
      font-weight: normal;
      width: 100% !important;
      text-align: center !important;
    }
  }

  .confirm-dialog-content {
    width: 150px;
    padding: 20px 0px;
    margin: 0 auto;
    font-size: 14px;

    .stong {
      color: #fb4603;
    }
  }

  .change-state-dialog {
    border: 4px solid #1989fa;

    .van-button {
      color: #333 !important;
      font-weight: normal;
      width: 100% !important;
      text-align: center !important;
    }

    .confirm-dialog-content {
      width: 200px;
      padding: 20px 0px;
      display: flex;
      flex-direction: column;
      align-items: center;

      .title {
        text-align: center;
        margin-bottom: 20px;
      }

      .input {
        width: 100%;
        height: 32px;
        border-radius: 8px;
        border: 1px solid #1989fa;
        padding: 5px 10px;
      }
    }
  }
}